<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改广告计划')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-ad-edit" th:object="${ad}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告id：</label>
				<div class="col-sm-8">
					<input id="adId" name="adId" th:field="*{adId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告主ID：</label>
				<div class="col-sm-8">
					<input id="advertiserId" name="advertiserId" th:field="*{advertiserId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告组ID：</label>
				<div class="col-sm-8">
					<input id="campaignId" name="campaignId" th:field="*{campaignId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">投放范围：</label>
				<div class="col-sm-8">
					<input id="deliveryRange" name="deliveryRange" th:field="*{deliveryRange}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告组预算类型：</label>
				<div class="col-sm-8">
					<input id="budgetMode" name="budgetMode" th:field="*{budgetMode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告组预算：</label>
				<div class="col-sm-8">
					<input id="budget" name="budget" th:field="*{budget}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告投放起始时间：</label>
				<div class="col-sm-8">
					<input id="startTime" name="startTime" th:field="*{startTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告投放结束时间：</label>
				<div class="col-sm-8">
					<input id="endTime" name="endTime" th:field="*{endTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">计划出价类型：</label>
				<div class="col-sm-8">
					<input id="pricing" name="pricing" th:field="*{pricing}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告投放时间类型：</label>
				<div class="col-sm-8">
					<input id="scheduleType" name="scheduleType" th:field="*{scheduleType}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告投放时段：</label>
				<div class="col-sm-8">
					<input id="scheduleTime" name="scheduleTime" th:field="*{scheduleTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告投放速度类型：</label>
				<div class="col-sm-8">
					<input id="flowControlMode" name="flowControlMode" th:field="*{flowControlMode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">应用直达链接：</label>
				<div class="col-sm-8">
					<input id="openUrl" name="openUrl" th:field="*{openUrl}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">应用下载方式：</label>
				<div class="col-sm-8">
					<input id="downloadType" name="downloadType" th:field="*{downloadType}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告落地页链接：</label>
				<div class="col-sm-8">
					<input id="externalUrl" name="externalUrl" th:field="*{externalUrl}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告应用下载链接：</label>
				<div class="col-sm-8">
					<input id="downloadUrl" name="downloadUrl" th:field="*{downloadUrl}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告名称：</label>
				<div class="col-sm-8">
					<input id="name" name="name" th:field="*{name}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告应用下载类型：</label>
				<div class="col-sm-8">
					<input id="appType" name="appType" th:field="*{appType}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告应用下载包名：</label>
				<div class="col-sm-8">
					<input id="package" name="package" th:field="*{package}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">过滤已转化用户类型字段：</label>
				<div class="col-sm-8">
					<input id="hideIfConverted" name="hideIfConverted" th:field="*{hideIfConverted}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">门店ids：</label>
				<div class="col-sm-8">
					<input id="advertiserStoreIds" name="advertiserStoreIds" th:field="*{advertiserStoreIds}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">门店类型：</label>
				<div class="col-sm-8">
					<input id="storeType" name="storeType" th:field="*{storeType}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">过滤已安装：</label>
				<div class="col-sm-8">
					<input id="hideIfExists" name="hideIfExists" th:field="*{hideIfExists}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">ocpm广告转化出价：</label>
				<div class="col-sm-8">
					<input id="cpaBid" name="cpaBid" th:field="*{cpaBid}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">转化类型：</label>
				<div class="col-sm-8">
					<input id="externalActions" name="externalActions" th:field="*{externalActions}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">穿山甲视频创意类型：</label>
				<div class="col-sm-8">
					<input id="unionVideoType" name="unionVideoType" th:field="*{unionVideoType}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">深度优化方式：</label>
				<div class="col-sm-8">
					<input id="deepBidType" name="deepBidType" th:field="*{deepBidType}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">深度优化出价：</label>
				<div class="col-sm-8">
					<input id="deepCpabid" name="deepCpabid" th:field="*{deepCpabid}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">第三方唯一键：</label>
				<div class="col-sm-8">
					<input id="uniqueFk" name="uniqueFk" th:field="*{uniqueFk}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">自动出价类型：</label>
				<div class="col-sm-8">
					<input id="smartBidType" name="smartBidType" th:field="*{smartBidType}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">是否调整自动出价：</label>
				<div class="col-sm-8">
					<input id="adjustCpa" name="adjustCpa" th:field="*{adjustCpa}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建人：</label>
				<div class="col-sm-8">
					<input id="createUser" name="createUser" th:field="*{createUser}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建时间：</label>
				<div class="col-sm-8">
					<input id="createTime" name="createTime" th:field="*{createTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">更新人：</label>
				<div class="col-sm-8">
					<input id="updateUser" name="updateUser" th:field="*{updateUser}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">更新时间：</label>
				<div class="col-sm-8">
					<input id="updateTime" name="updateTime" th:field="*{updateTime}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "dsp/ad";
		$("#form-ad-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-ad-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
